// pages/notify/index.ts
Page({
onLoad({id}){
console.log(id);
this.getNotifyDetail(id)
} ,
async  getNotifyDetail(id){

  const {code,data} = await wx.http.get(`/announcement/${id}`)
  if(code !== 10000) return wx.utils.toast()
    this.setData({
      notifyDetail:data
    })
}
})